package edu.upc.epe.trabajodw;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Calendar;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.springframework.format.annotation.DateTimeFormat;

@RooJavaBean
@RooToString
@RooEntity
public class Condominio {
//Clase Condominio
    @NotNull
    @Size(max = 40)
    private String nombre;

    @NotNull
    @Size(max = 60)
    private String direccion;

    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(style = "S-")
    private Calendar fechaconstruye;

    private Float nropisos;

    private Float metraje;
}
